/* 
 * Copyright 2013-2020 Modeliosoft
 * 
 * This file is part of Modelio.
 * 
 * Modelio is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Modelio is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Modelio.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.12.02 at 02:29:48 PM CET
//
package org.modelio.bpmnxml.model;

import com.modeliosoft.modelio.javadesigner.annotations.objid;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlType;

/**
 * <p>Java class for tEventBasedGateway complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="tEventBasedGateway">
 * &lt;complexContent>
 * &lt;extension base="{http://www.omg.org/spec/BPMN/20100524/MODEL}tGateway">
 * &lt;attribute name="instantiate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 * &lt;attribute name="eventGatewayType" type="{http://www.omg.org/spec/BPMN/20100524/MODEL}tEventBasedGatewayType" default="Exclusive" />
 * &lt;anyAttribute processContents='lax' namespace='##other'/>
 * &lt;/extension>
 * &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@objid ("dd203dad-617f-4791-8791-52ba8c9aad92")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "tEventBasedGateway")
public class TEventBasedGateway extends TGateway {
    @objid ("7b94d2a1-646d-4360-84c3-1def117a95f7")
    @XmlAttribute(name = "instantiate")
    protected Boolean instantiate;

    @objid ("9364e5ae-8351-451b-b55a-afe8a3220342")
    @XmlAttribute(name = "eventGatewayType")
    protected TEventBasedGatewayType eventGatewayType;

    /**
     * Gets the value of the instantiate property.
     * @return
     * possible object is
     * {@link Boolean }
     */
    @objid ("0e7cb9b7-081a-4798-94d5-6dc5a8525dd3")
    public boolean isInstantiate() {
        if (this.instantiate == null) {
            return false;
        } else {
            return this.instantiate;
        }
        
    }

    /**
     * Sets the value of the instantiate property.
     * @param value allowed object is
     * {@link Boolean }
     */
    @objid ("222a01a3-9976-4766-9555-044965e7fdec")
    public void setInstantiate(Boolean value) {
        this.instantiate = value;
    }

    /**
     * Gets the value of the eventGatewayType property.
     * @return
     * possible object is
     * {@link TEventBasedGatewayType }
     */
    @objid ("ccaba797-7723-4373-afa6-662491dcf01a")
    public TEventBasedGatewayType getEventGatewayType() {
        if (this.eventGatewayType == null) {
            return TEventBasedGatewayType.EXCLUSIVE;
        } else {
            return this.eventGatewayType;
        }
        
    }

    /**
     * Sets the value of the eventGatewayType property.
     * @param value allowed object is
     * {@link TEventBasedGatewayType }
     */
    @objid ("5a856b81-06df-4978-b92b-33d0a4d6267e")
    public void setEventGatewayType(TEventBasedGatewayType value) {
        this.eventGatewayType = value;
    }

}
